package com.sfzlot.dev.netty.bean.data;

import java.util.Date;

import com.sfzlot.dev.netty.bean.inf.Data;
import com.sfzlot.dev.netty.utils.ByteUtil;

/**
 * 设备状态信息应答体
 * Created by pierr on 2017/5/30.
 */
public class DeviceStatusOutData implements Data {
    
    private Date dataCollectTime;	// 数据采集时间

    public Date getDataCollectTime() {
        return dataCollectTime;
    }

    public void setDataCollectTime(Date dataCollectTime) {
        this.dataCollectTime = dataCollectTime;
    }

    

	@Override
	public String toString() {
		return "DeviceStatusOutData [dataCollectTime=" + dataCollectTime 
				+ "]";
	}

	@Override
	public byte[] toBytes(){
		byte[] dateBytes = ByteUtil.timeToBytes(dataCollectTime);
		return dateBytes;
	}

	@Override
	public String transData() {
		return "DeviceStatusOutData(设备状态应答体) [dataCollectTime=" + dataCollectTime 
				+ "]";
	}
}
